/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "~@app/uiTheme/less/color-schema.less";
:global { // DX-11429 TODO reafactor component to use css modules instead fo global classes

  .dataset-label-overlay {

    // it add a left or right arrow on overlay
    &::after {
      left: 97%;
      top: 50px;
      border: solid transparent;
      content: " ";
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
      border-color: rgba(255, 255, 255, 0);
      border-left-color: #ffffff;
      border-width: 5px;
      margin-top: -5px;
    }

    &::before {
      left: 97%;
      top: 50px;
      border: solid transparent;
      content: " ";
      height: 0;
      width: 0;
      position: absolute;
      pointer-events: none;
      border-color: rgba(246, 246, 246, 0);
      border-left-color: @OVERLAY_BORDER;
      border-width: 7px;
      margin-top: -7px;
    }

    &.right::after {
        left: -4px;
        top: 50px;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        border-color: rgba(255, 255, 255, 0);
        border-right-color: #ffffff;
        border-width: 5px;
        margin-top: -5px;
    }

    &.right::before{
        left: -4px;
        top: 50px;
        border: solid transparent;
        content: " ";
        height: 0;
        width: 0;
        position: absolute;
        pointer-events: none;
        border-color: rgba(246, 246, 246, 0);
        border-right-color: @OVERLAY_BORDER;
        border-width: 4px;
        margin-top: -4px;
    }


    .breadCrumbs {
      margin-left: 2px;

      .copy-button {
        color: #43B8C9;
        margin: 0 0 0 5px;
        opacity: 0;
      }
      &:hover {
        .copy-button {
          opacity: 1;
        }
      }
    }

  }
}
